package com.gqr.threadobjectclasscommonmethods;

/**
 * Copyright (C), 2020-2024,gqr
 * FileName:Id
 * author:guqingrong
 * Date:2024-04-24 22:15
 * Description: id从1开始,jvm运行起来后,我们自己创建的线程id早已不是2
 * History:
 * <author>    <time>    <version>    <desc>
 * 作者姓名     修改时间     版本号        描述
 */
public class Id {
    public static void main(String[] args) {
        Thread thread = new Thread();
        System.out.println("主线程id"+Thread.currentThread().getId());
        System.out.println("子线程id"+thread.getId());

    }
}
